package com.wk.pms.feign;

import com.wk.common.bean.Resp;
import com.wk.pms.entity.Brand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient("pms-service")
@RequestMapping("brand")
public interface BrandFeign {

    /**
     * 根据品牌ID查询品牌
     * @param brandId
     * @return
     */
    @GetMapping("/info/{brandId}")
    Resp<Brand> info(@PathVariable(value = "brandId") Long brandId);

}
